package com.bwie.controller;

import com.bwie.service.TUserService;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/index")
public class UserController {
    @Autowired
    TUserService tUserService;




    @PostMapping("/sendCode/{mobile}")
    public R sendCode(@PathVariable("mobile")String mobile){
        return tUserService.sendCode(mobile);
    }

}
